package com.example.ex2.controllers;

import com.example.ex2.mappers.StudentMapper;
import com.example.ex2.pojo.Student;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;

import java.util.HashMap;
import java.util.Map;

@Controller
public class Result {

    StudentMapper studentMapper = new StudentMapper();
    public String result(Model model){
        Map map = new HashMap<String,Student>();
        model.addAttribute("Information",studentMapper.show(map));
        return "result";
    }
}
